-
Notifications
You must be signed in to change notification settings - Fork 471
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix compile error with single explicit assert in switch expression branch (#1845) #2033
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2033 +/- ##
============================================
+ Coverage 80.44% 81.81% +1.36%
- Complexity 4337 4617 +280
============================================
Files 441 448 +7
Lines 13534 14468 +934
Branches 1707 1831 +124
============================================
+ Hits 10888 11837 +949
+ Misses 2008 1954 -54
- Partials 638 677 +39 ☔ View full report in Codecov by Sentry. |
f07a139
to
80f423c
Compare
spock-core/src/main/java/org/spockframework/compiler/AbstractDeepBlockRewriter.java
Show resolved
Hide resolved
@@ -13,4 +13,14 @@ class ConditionG4Spec extends Specification { | |||
(0..<5) == [0, 1, 2, 3, 4] | |||
(0<..<5) == [1, 2, 3, 4] | |||
} | |||
|
|||
@Issue("https://github.com/spockframework/spock/issues/1845") | |||
def "explicit assert in switch expression"() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about adding examples for the other assertions switch variants?
Fixes #1845